package com.api.apiclientsdk.model.enums;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

/**
 * @author: 崔老爷
 * Date: 2024/10/10 18:36
 * @Description:
 */
public enum APIConstant {

    POST("POST","POST"),
    GET("GET","GET");


    private final  String key;
    private final  String value;

    APIConstant(String key, String value) {
        this.key = key;
        this.value = value;
    }
    public static List<String> getValues() {
        return Arrays.stream(values()).map(item -> item.value).collect(Collectors.toList());
    }
    public String getKey() {
        return key;
    }

    public String getValue() {
        return value;
    }
}
